﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ParticleSystem;

namespace BGSpaceShooter
{
    class ZombieDrawer : IDrawer
    {

        private List<IObjectEffect> effects;

        public ZombieDrawer(IEnumerable<ZombieProjectile> zombies)
        {
            effects = new List<IObjectEffect>();

            foreach (var zombieProjectile in zombies)
            {
                foreach (var objectEffect in zombieProjectile.getObjectEffects())
                {
                    effects.Add(objectEffect);
                }
            }
        }

        public void Draw(Camera camera)
        {
            //do nth - w celu zachowania zgodnosci z architektura
        }

        public IEnumerable<EffectDrawer> GetEffectDrawers()
        {
            return from e in effects select e.GetDrawer();
        }
    }
}
